{include file="public/meat" title="用户组列表"/}
<div class="cx-fex-c">
    <div class="x11 pad-t15 pad-b10">
        <div class="cx-fex-c">
            <div class="xs6 xl12">
                <a href="{:url('index')}" class="button bg-blue">返回列表</a>
                {if $btn.add}
                <a href="{:url('add')}" class="button bg-blue">添加用户组</a>
                {/if}
            </div>
            <div class="xs6 xl12">
                <form class="layui-form" role="form" action="so" method="post">
                    <div class="cx-fex-r">
                        <label class="lab">搜索用户组</label>
                        <input class="ipt" name="keyword" placeholder="请输入搜索内容" type="text" style="width: 200px;">
                        <button class="button f-l" type="submit"><i class="cx-icon cx-icon-sousuo"></i></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="x11">
        <form class="layui-form" role="form" action="" method="post">
            <table class="cx-teble cx-teble-bor-w cx-teble-bor cx-table-striped cx-table-hover cx-table-responsive-w">
                <thead>
                <tr>
                    <th class="t-c" width="50">id</th>
                    <th>用户组</th>
                    <th>类型</th>
                    <th class="t-c">用户数量</th>
                    <th class="t-c" width="100">升级积分</th>
                    <th class="t-c" width="80">前台权限</th>
                    {if $btn.groupauth}<th class="t-c" width="80">后台权限</th>{/if}
                    {if $btn.see}<th class="t-c" width="80">启用状态</th>{/if}
                    {if $btn.edit}<th class="t-c" width="50">排序</th>{/if}
                    {if $btn.edit || $btn.del}
                    <th class="t-c" width="120">编辑</th>
                    {/if}
                </tr>
                </thead>
                <tbody>
                {foreach $list as $cx}
                <tr>
                    <td class="t-c">{$cx.id}</td>
                    <td>{$cx.title}</td>
                    <td>{$cx.grouptypezh}</td>
                    <td class="t-c">{$cx.usernum}</td>
                    <td>{$cx.groupup}</td>
                    <td class="t-c"> <a class="button button-S bg-blue" href="{:url('edit',array('id'=>$cx['id']))}">修改</a></td>
                    {if $btn.groupauth}<td class="t-c"> {$cx.groupadminzh}</td>{/if}
                    {if $btn.see}
                    <td class="t-c">
                        {$cx.statuszan|default=""}
                    </td>
                    {/if}
                    {if $btn.edit}
                    <td class="t-c">
                        <input class="ipt ipt-S t-c" type="text" name="{$cx.id}" value="{$cx.sort}">
                    </td>
                    {/if}
                    {if $btn.edit || $btn.del}
                    <td class="t-c">
                        {if $btn.edit}
                        <a class="button button-S bg-blue" href="{:url('edit',array('id'=>$cx['id']))}">编辑</a>
                        {/if}
                        {if $btn.del}
                        <a class="button button-S bg-red cx-click" data-id="{$cx['id']}" data-href="{:url('del')}" data-type="deldata">删除</a>
                        {/if}
                    </td>
                    {/if}
                </tr>
                {/foreach}
                </tbody>
            </table>
            <div class="t-c pad-t20">
                {if $btn.edit}<button id="form-submit" type="submit" class="button bg-blue">更改排序</button>{/if}
            </div>
            <div class="mt-20 t-c">
                {$list->render()}
            </div>
        </form>
    </div>
</div>
<div style="height: 20px; overflow: hidden"></div>
{include file="public/js" /}
<script>
    layui.config({
        base: '__ADMIN__/js/'
    }).use('app');
</script>
{include file="public/footer" /}